<?php
namespace app\exception;

/** 
* 通用成功
*/
class Succ extends Base {
    // http状态码
    public $httpCode  = 200;
    // 错误提示
    public $msg       = '操作成功';
    // 系统错误码
    public $errorCode = self::Code;
    public $_data      = [];

    // ---------------👇全局错误码👇---------------------
    const Code         = 0;  // 通用成功码

    public function __construct($data = null, $msg = null){
        $this->_data      = $data;
        parent::__construct($msg, self::Code);
    }
}